import java.util.ArrayList;

public abstract class AllyControlCenter {
    protected String allyName;
    protected ArrayList<Observer> players;
    public AllyControlCenter() {
        players = new ArrayList<Observer>();
    }
    public void setAllyName(String allyName) {
        this.allyName = allyName;
    }
    public String getAllyName() {
        return allyName;
    }
    public void join(Observer obs) {
        players.add(obs);
    }
    public void quit(Observer obs) {
        players.remove(obs);
    }
    public abstract void notifyObserver(String name);
}
